// StopMsgDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Service Control.h"
#include "StopMsgDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CStopMsgDlg dialog


CStopMsgDlg::CStopMsgDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CStopMsgDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CStopMsgDlg)
	m_csStopMsg = _T("");
	//}}AFX_DATA_INIT
}


void CStopMsgDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStopMsgDlg)
	DDX_Text(pDX, IDC_EBSTOPMSG, m_csStopMsg);
	DDV_MaxChars(pDX, m_csStopMsg, 30);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CStopMsgDlg, CDialog)
	//{{AFX_MSG_MAP(CStopMsgDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStopMsgDlg message handlers

BOOL CStopMsgDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here

	//Select the stop message, and set the focus there.
	CEdit * ctrl = (CEdit *) GetDlgItem(IDC_EBSTOPMSG);
	ctrl->SetFocus();
	ctrl->SetSel(0,-1);

	return FALSE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
